package com.example.springMVC.dao;

import com.example.springMVC.pojo.User;

import java.util.List;
import java.util.Map;

public interface UserMapper {
//    int deleteByPrimaryKey(Long id);

    boolean addUser(User user);

    User selectByPrimaryKey(Long id);

    List<User> userList();

//    int updateByPrimaryKey(User record);
    User login(User user);

    List<User>
    userList(Map<String, Object> param);


    boolean deleteUser(Long userId);

    boolean updateUserById(User user);

    User getUserById(long userId);

    User getUserByCode(String userCode);

    boolean pwdmodify(User user);
}